package com.damuzee.system.admin.web;

import com.damuzee.system.admin.domain.EmpUser;

/**
 * 系统变量的线程
 * 
 * @author karka.w
 * 2013-9-14
 *
 */
public class ContextThreadVariable {

	/**
	 * 当前用户线程变量
	 */
	private static ThreadLocal<EmpUser> userVariable = new ThreadLocal<EmpUser>();

	
	public static EmpUser getUser() {
		return userVariable.get();
	}

	public static void setUser(EmpUser user) {
		 userVariable.set(user);
	}
	
	public static void removeUser(){
		userVariable.remove();
	}
	
	
	
}
